Skip to content

feat(outlook): created outlook block#409

Merged
waleedlatif1 merged 7 commits intosimstudioai:mainfrom
aadamgough:feat/outlook
May 25, 2025
Merged

feat(outlook): created outlook block#409
waleedlatif1 merged 7 commits intosimstudioai:mainfrom
aadamgough:feat/outlook

Conversation

@aadamgough
Copy link
Copy Markdown
Contributor

Description

Added the Microsoft Outlook block to send, draft, and read outlook emails

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Tested sending, reading, and drafting messages with my microsoft outlook account.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works
  • All tests pass locally and in CI (bun run test)
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules
  • I have updated version numbers as needed (if needed)
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Security Considerations:

  • My changes do not introduce any new security vulnerabilities
  • I have considered the security implications of my changes

@vercel
Copy link
Copy Markdown

vercel bot commented May 25, 2025

Someone is attempting to deploy a commit to the Sim Studio Team on Vercel.

A member of the Team first needs to authorize it.

@vercel vercel bot temporarily deployed to Preview – docs May 25, 2025 02:00 Inactive
@vercel
Copy link
Copy Markdown

vercel bot commented May 25, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 25, 2025 2:55am
sim ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 25, 2025 2:55am

Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This PR adds Microsoft Outlook integration to enable sending, drafting, and reading emails through the Microsoft Graph API. The implementation includes OAuth authentication, folder management, and proper error handling.

  • The Outlook block implementation in /apps/sim/blocks/blocks/outlook.ts has a typo in andsend that should be and send in the longDescription
  • The credential comment in /apps/sim/blocks/blocks/outlook.ts incorrectly references Gmail instead of Microsoft credentials
  • The error message in /apps/sim/tools/outlook/read.ts incorrectly references Microsoft Teams instead of Outlook
  • The results field in /apps/sim/tools/outlook/types.ts uses any type which should be more strictly typed for better type safety
  • Response handling in /apps/sim/tools/outlook/draft.ts and /apps/sim/tools/outlook/send.ts references Google API errors instead of Microsoft Graph API errors

18 file(s) reviewed, 23 comment(s)
Edit PR Review Bot Settings | Greptile

Comment thread apps/docs/content/docs/tools/microsoft_teams.mdx
Comment thread apps/docs/content/docs/tools/outlook.mdx Outdated
Comment thread apps/docs/content/docs/tools/outlook.mdx Outdated
Comment thread apps/sim/app/api/auth/oauth/outlook/folders/route.ts Outdated
Comment thread apps/sim/app/api/auth/oauth/outlook/folders/route.ts
Comment thread apps/sim/tools/outlook/read.ts
Comment thread apps/sim/tools/outlook/send.ts
Comment thread apps/sim/tools/outlook/read.ts Outdated
Comment thread apps/sim/tools/outlook/types.ts
Comment thread apps/sim/tools/registry.ts
Copy link
Copy Markdown
Collaborator

@waleedlatif1 waleedlatif1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lit

@waleedlatif1 waleedlatif1 merged commit 79b761c into simstudioai:main May 25, 2025
5 checks passed
@aadamgough aadamgough deleted the feat/outlook branch June 14, 2025 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants